<?php

require_once 'init.php';
require_once dirname(__FILE__).'/cf/mail.php';

$question = cf\query2array("
	SELECT dt,cf_users.name AS name, cf_users.email AS email, question 
	FROM support_questions 
	INNER JOIN cf_users ON user_id=cf_users.id
	WHERE support_questions.id=:id",
	array('id'=>cf\param::get('id'))
);
	 
$txt = "
	{$question['dt']} <br>
	{$question['name']} <br>
	{$question['email']} <br><br>
	{$question['question']} 
";

cf\Mail::send(
	implode(',',cf\query2vector('SELECT email FROM support_email')),
	new cf\Mail('Вопрос в техническую поддержку Fashion IQ', $txt)
);

?>